package com.tuozixuan.camel.springevent;

import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;

@Component
public class SpringEventDemoRoute extends RouteBuilder {

	@Override
	public void configure() {
		
//		from("timer:firedOnceTimer?repeatCount=1")
//    	.setBody(constant("Hello, event"))
//        .to("spring-event:testEvent");
//	    
//	    from("spring-event:testEvent")
//	    	.convertBodyTo(CamelEvent.class)
//	        .to("log:SpringEventLog");
	}

}
